/**
 * 定义数采仪管理模块
 */
(function(window, angular, undefined){
	var dataCollectionInstrumetManagerModule = angular.module('water.apps.sw.stationManager.stationInfo.dataCollectionInstrumetManager', ['water.entity.dataCollectionInstrumet',
	                                                                                                                                 'water.apps.common.stationInfo.dataCollectionInstrumetManager',
	                                                                                                                                 'water.entity.monitorStation']);
	
	dataCollectionInstrumetManagerModule.controller('dataCollectionInstrumetManagerController',
		function($rootScope,$scope,$dataCollectionInstrumetService,$controller,$monitorStationService){
		
			var control = $controller("commonDataCollectionInstrumetManagerController",{$scope:$scope});
			
			/**
			 * 获取站点列表，编辑或者新增的时候需要选择
			 */
			$scope._getStationSelectList = function(){
				$monitorStationService.getDomainList({STATION_ID:$scope.StationData.STATION_ID}).then(function(d){
					$scope.stationSelectList = d;
					$scope.stationSelecter.setData(d);
					$scope.stationSelecterEdit.setData(d);
				});
			};
	});
}(window, angular));